package com.sxg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxg.entity.SxgOrderEntity;
import com.sxg.page.PageResult;
import com.sxg.query.SxgOrderQuery;
import com.sxg.utils.code.AjaxResult;
import com.sxg.vo.SxgOrderVO;
import com.sxg.vo.req.OrderReqVo;

import java.util.List;

/**
 * 订单表
 *
 * @author 浪漫写尽歌谱 3298751420@qq.com
 * @since 1.0.0 2024-03-07
 */
public interface SxgOrderService extends IService<SxgOrderEntity> {

    AjaxResult page(SxgOrderQuery query);

    void save(SxgOrderVO vo);

    void update(SxgOrderVO vo);

    AjaxResult delete(String id);

    AjaxResult createOrderAndLockStock(OrderReqVo vo);

    AjaxResult pay(Long id);

    AjaxResult close(Long orderId);

    AjaxResult receiptOfGoods(Long orderId);

    AjaxResult search(String text);

    AjaxResult getOrderInfoById(Long id);
}